package main

import (
	"go-chain-data/chain"
	"go-chain-data/config"
	"go-chain-data/database"
)

func init() {
	config.SetupConfig()
	config.SetupDBEngine()
	//config.SetupEthClient()
	database.InitRedis()
}

func main() {

	chain.SyncBlockToDBTrx()
	//swapInfo := new(models.SwapInfo)
	//err := database.RedisClient.GetStructFromRedis("0x2dD49866C277b717b0f9716834AB717a1c6b0C42", swapInfo)
	//if err != nil {
	//	log.Printf("读取redis失败， %v ", err)
	//	return
	//}
	//
	//log.Println(swapInfo)

}
